.advanced-settings-dlg {
    .div-category {
        padding: 0 0 0 10px;
        .text-align-right();
        .font-weight-bold();
        .font-size-normal();
        white-space: nowrap;
        .rtl & {
            padding: 0 10px 0 0;
        }
    }

    .header-sorted {
        label, div, span {
            display: inline-block;
            cursor: pointer;
        }
        .caret {
            width: 4px;
            height: 4px;
            border: solid 1px @icon-normal-ie;
            border: solid 1px @icon-normal;
            border-bottom: none;
            border-right: none;
            background-image: none;

            transition: transform 0.2s ease;
            transform: rotate(-135deg) translate(1px,1px);

            &.sort-desc {
                transform: rotate(45deg);
            }
        }
    }

    .range-tableview {
        .list-item > div{
            vertical-align: middle;
            display: inline-block;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: pre;
        }

        .listitem-icon {
            width: 20px;
            height: 20px;
            vertical-align: middle;
        }

        .selected {
            .listitem-icon {
                background-position-x: -20px;
                background-position-x: @button-small-active-icon-offset-x;
            }
        }

        .lock-user {
            position: absolute;
            right: 2px;
            min-width: 100px;
            max-width: 150px;
            height: 20px;
            padding: 2px 10px;
            background-color: #EE3525;
            color: #fff;
            text-align: center;
        }
    }
}

.sort-dialog-btn-text {
    min-width: 80px;
    .margin-right-5();
}

#format-manager-btn-group {
    vertical-align:bottom;
    .format-manager-btn-text {
        min-width: 80px;
    }
}

.preview-canvas-container {
    border: @scaled-one-px-value-ie solid @border-regular-control-ie;
    border: @scaled-one-px-value solid @border-regular-control;
}

#id-chart-settings-dlg-layout {
    #chart-dlg-check-series {
        margin: 20px 0 9px 7px;

        .rtl & {
            margin: 20px 7px 9px 0;
        }
    }

    #chart-dlg-check-category {
        margin: 0 0 9px 7px;

        .rtl & {
            margin: 0 7px 9px 0;
        }
    }

    #chart-dlg-check-value {
        margin: 0 0 5px 7px;

        .rtl & {
            margin: 0 7px 5px 0;
        }
    }

    #hart-dlg-check-markers {
        margin: 0 0 12px 7px;

        .rtl & {
            margin: 0 7px 12px 0;
        }
    }
}

#window-chart-data {
    .up-down-btns {
        display: inline-block;

        #chart-dlg-btn-up,
        #chart-dlg-btn-down {
            display: inline-block;
        }
    }

    #chart-dlg-btn-add,
    #chart-dlg-btn-edit,
    #chart-dlg-btn-delete {
        min-width: 70px;
    }
}

#chart-type-dlg-series-list {
    .series-color {
        width: 8px;
        height: 12px;
        display: inline-block;
        vertical-align: middle;
    }

    .series-value {
        width: 95px;
        .padding-left-5();
        display: inline-block;
        vertical-align: middle;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .series-cmb {
        width: 110px;
        .padding-left-5();
        display: inline-block;
        vertical-align: middle;
    }

    .series-chk {
        .padding-left(55px);
        display: inline-block;
        vertical-align: middle;
    }
}

#window-header-footer {
    #id-dlg-hf-btn-even,
    #id-dlg-hf-btn-first {
        .margin-left(-1px)
    }

    .preview-container {
        .margin-right(-1px);
    }
}

#window-hyperlink {
    #id-dlg-hyperlink-external {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;

        .rtl & {
            .border-radius(@border-radius-small);
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
    }

    #id-dlg-hyperlink-internal {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left-width: 0;
        .margin-left(-1px);

        .rtl & {
            border: @scaled-one-px-value solid @border-regular-control;
            .border-radius(@border-radius-small);
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-right-width: 0;
        }
    }

    .get-link {
        display: inline-block;
        position: relative;
        min-width: 150px;

        #id-dlg-hyperlink-get-link {
            line-height: 14px;
            margin-top: 3px;
        }

        #id-clip-copy-box {
            width: 291px;
            left: -139px;
            padding: 10px;

            .rtl & {
                left: auto;
                right: -139px;
            }

            #id-dlg-copy-btn {
                width: 86px;
            }
        }
    }

    #id-dlg-hyperlink-list {
        width:100%;
        height: 115px;
    }

    .margin-bottom {
        margin-bottom: 5px;
    }

    .margin-bottom-big {
        margin-bottom: 10px;
    }
}

.protect-sheet-options {
    .list-item {
        pointer-events:none;
        display: flex;
    }

    .checkbox-indeterminate {
        position:absolute;
    }
}

#window-name-manager {
    #name-manager-group-btn {
        vertical-align: bottom;
    }
}

#printadv-dlg-pages {
    margin-top: 16px;

    label, div {
        display: inline-block;
    }
}

#window-format-rules {
    .inner-content > table {
        width: 100%;
    }
    .rule {
        width:150px;
    }
    .rule,
    #format-rules-edit-combo-rule,
    #format-rules-edit-txt-r1,
    #format-rules-edit-txt-r2,
    #format-rules-edit-spin-rank,
    #format-rules-edit-combo-percent {
        display: inline-block;
        vertical-align: top;
    }
    #format-rules-format-preset,
    #format-rules-edit-combo-num-format {
        display: inline-block;
        vertical-align: middle;
    }
    #format-rules-bold,
    #format-rules-italic,
    #format-rules-underline,
    #format-rules-strikeout,
    #format-rules-fontcolor,
    #format-rules-fillcolor,
    #format-rules-borders,
    #format-rules-edit-combo-num-format {
        display: inline-block;
    }
    #format-rules-edit-btn-clear {
        display: inline-block;
        vertical-align: middle;
        min-width: 80px;
    }
    .edit-preview-format {
        border: 1px solid #cbcbcb;
        width: 150px;
        height: 40px;
        padding: 3px;
    }
    #format-rules-edit-preview-format {
        width: 100%;
        height: 100%;
        position: relative;
        margin: 0 auto;
        background-color: #ffffff;
    }
    .scale-container {
        padding-top: 8px;
        label {
            display: block;
        }
        .scale-1 {
            vertical-align: top;
        }
        .scale-1,
        .scale-2,
        .scale-3 {
            width: 150px;
            display: inline-block;
        }
        #format-rules-edit-combo-scale-1,
        #format-rules-edit-txt-scale-1,
        #format-rules-edit-combo-scale-2,
        #format-rules-edit-txt-scale-2,
        #format-rules-edit-combo-scale-3,
        #format-rules-edit-txt-scale-3 {
            margin-bottom: 8px;
        }
        #format-rules-edit-txt-scale-1,
        #format-rules-edit-txt-scale-2,
        #format-rules-edit-txt-scale-3 {
            height: 22px;
        }
    }
    .preview-scale {
        width: 100%;
        height: 40px;
        padding: 3px;
        border: 1px solid #cbcbcb;
        #format-rules-edit-preview-scale {
            width: 100%;
            height: 100%;
            position: relative;
            margin: 0 auto;
        }
    }
    .databar-container {
        padding-top: 8px;
        .bar-1 {
            width:150px;
            display: inline-block;
            vertical-align: top;
        }
        .bar-2 {
            width:150px;
            display: inline-block;
        }
        #format-rules-edit-combo-bar-1,
        #format-rules-edit-combo-bar-2 {
            margin-bottom: 8px;
        }
        #format-rules-edit-txt-bar-1,
        #format-rules-edit-txt-bar-2 {
            height: 22px;
        }
    }
    .fill, .border, .direction {
        width: 150px;
        display: inline-block;
        vertical-align: top;
        > label {
            display: block;
        }
    }
    #format-rules-edit-combo-fill,
    #format-rules-edit-combo-border,
    #format-rules-edit-combo-direction {
        margin-bottom: 8px;
    }
    .color-pos-fill,
    .color-pos-border {
        margin-bottom: 4px;
    }
    .color-neg-fill,
    .color-neg-border {
        margin-bottom: 8px;
    }
    .color-pos-fill,
    .color-neg-fill,
    .color-pos-border,
    .color-neg-border {
        width: 100%;
        height: 23px;
        label {
            margin-top: 4px;
        }
    }
    #format-rules-edit-chk-show-bar {
        margin-top: 12px;
    }
    .axis {
        .header {
            display: block;
        }
        #format-rules-edit-color-axis-color,
        #format-rules-edit-combo-axis-pos {
            display: inline-block;
            vertical-align: middle;
        }
        .position-label {
            margin-top: 1px;
            vertical-align: middle;
        }
    }
    .preview {
        width: 155px;
        .header {
            display: block;
        }
        .preview-databar {
            border: 1px solid #cbcbcb;
            width: 150px;
            height: 40px;
            padding: 3px;
            #format-rules-edit-preview-databar {
                width: 100%;
                height: 100%;
                position: relative;
                margin: 0 auto;
            }
        }
    }
    .icon-style {
        padding-top: 8px;
        #format-rules-icon-style,
        #format-rules-edit-chk-icon-show {
            display: inline-block;
            vertical-align: middle;
        }
        #format-rules-edit-btn-icon-reverse {
            display: inline-block;
        }
    }
    #format-rules-combo-icon-5,
    #format-rules-txt-icon-5,
    #format-rules-edit-combo-op-5,
    #format-rules-edit-txt-value-5,
    #format-rules-edit-combo-type-5,
    #format-rules-combo-icon-4,
    #format-rules-txt-icon-4,
    #format-rules-edit-combo-op-4,
    #format-rules-edit-txt-value-4,
    #format-rules-edit-combo-type-4,
    #format-rules-combo-icon-3,
    #format-rules-txt-icon-3,
    #format-rules-edit-combo-op-3,
    #format-rules-edit-txt-value-3,
    #format-rules-edit-combo-type-3,
    #format-rules-combo-icon-2,
    #format-rules-txt-icon-2,
    #format-rules-edit-combo-op-2,
    #format-rules-edit-txt-value-2,
    #format-rules-edit-combo-type-2,
    #format-rules-combo-icon-1,
    #format-rules-txt-icon-1,
    #format-rules-edit-combo-op-1,
    #format-rules-edit-txt-value-1,
    #format-rules-edit-combo-type-1 {
        display: inline-block;
        vertical-align: middle;
    }
    #format-rules-txt-icon-5,
    #format-rules-txt-icon-4,
    #format-rules-txt-icon-3,
    #format-rules-txt-icon-2,
    #format-rules-txt-icon-1 {
        width: 130px;
    }
    #format-rules-edit-txt-value-5,
    #format-rules-edit-txt-value-4,
    #format-rules-edit-txt-value-3,
    #format-rules-edit-txt-value-2,
    #format-rules-edit-txt-value-1 {
        height: 22px;
    }

    #format-rules-borders-border-color {
        > span {
            margin: 2px 9px 0 -11px;
            .rtl & {
                margin: 2px -11px 0 9px;
            }
        }
    }
}

#id-adv-slicer-style {
    #sliceradv-button-ratio {
        display: inline-block;
        vertical-align: bottom;
    }
}

#id-protected-range-list-user {
    .listview:not(.disabled) > .item {
        .list-item {
            position: relative;
        }
        .listitem-icon {
            position: absolute;
            display: none;
            width: 20px;
            height: 20px;
            right: -5px;
            top: -3px;
            .rtl & {
                right: auto;
                left: -5px;
            }
        }
        &:hover {
            .listitem-icon {
                display: block;
            }
        }
        &.selected {
            .listitem-icon {
                background-position-x: -20px;
                background-position-x: @button-small-active-icon-offset-x;
            }
        }
    }
}

#format-manager-rules-list {
    #id-preview {
        width: 100%;
        position:relative;
        overflow:hidden;
    }

    #id-preview-data {
        width: 100%;
        position:relative;
        overflow:hidden;
        .listview {
            .item {
                height: 30px;
            }
        }
    }
}

#protect-edit-group-btn {
    .text-align-right();
    vertical-align: bottom;
}

#protect-edit-ranges-list {
    .lock-user {
        top: 2px;
    }
}

